﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.EquipmentManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.EquipmentManagement.EquipmentStateRecordVMs
{
    public partial class EquipmentStateRecordBatchVM : BaseBatchVM<EquipmentStateRecord, EquipmentStateRecord_BatchEdit>
    {
        public EquipmentStateRecordBatchVM()
        {
            ListVM = new EquipmentStateRecordListVM();
            LinkedVM = new EquipmentStateRecord_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class EquipmentStateRecord_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._EquipmentStateRecord._LineId")]
        public long? LineId { get; set; }
        [Display(Name = "_Model._EquipmentStateRecord._LineName")]
        public string LineName { get; set; }
        [Display(Name = "_Model._EquipmentStateRecord._ProuductId")]
        public long? ProuductId { get; set; }
        [Display(Name = "_Model._EquipmentStateRecord._ProductName")]
        public string ProductName { get; set; }
        [Display(Name = "_Model._EquipmentStateRecord._Equipment")]
        public long? EquipmentId { get; set; }
        [Display(Name = "_Model._EquipmentStateRecord._EquipName")]
        public string EquipName { get; set; }
        [Display(Name = "_Model._EquipmentStateRecord._Status")]
        public EquipStatusEnum? Status { get; set; }
        [Display(Name = "_Model._EquipmentStateRecord._StartTime")]
        public DateTime? StartTime { get; set; }
        [Display(Name = "_Model._EquipmentStateRecord._EndTime")]
        public DateTime? EndTime { get; set; }
        [Display(Name = "_Model._EquipmentStateRecord._Duration")]
        public decimal? Duration { get; set; }
        [Display(Name = "_Model._EquipmentStateRecord._ActiveOee")]
        public bool? ActiveOee { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}